package com.ruoyi.project.remoteControl.service;

import com.alibaba.fastjson.JSONObject;

/**
 * 主控端远控操作Service
 */
public interface RemoteControlService {
    JSONObject remoteConnect(String remoteDevicePublicIP);
    String remoteDisConnect(String remoteDevicePublicIP);

    /**
     * 通过MQTT发起远控
     * @param deviceClientId
     * @return
     */
    JSONObject mqttRemoteConnect(String deviceClientId);

    /**
     * 通过MQTT结束远控
     * @param deviceClientId
     * @return
     */
    String mqttRemoteDisconnect(String deviceClientId);

    /**
     * 通过后端方法调用浏览器打开远控url
     * @param deviceClientId
     */
    void openRemoteHtml(String deviceClientId);
}
